package com.jvup.common.model.enumeration;

/** VIP类型          : 0 非会员 1 会员*/
public enum VIPType {

    NONE(0, "非会员"),
    VIP(1, "会员");

    public final int    typeValue;
    public final String name;

    VIPType(int typeValue, String name){
        this.typeValue    = typeValue;
        this.name         = name;
    }

    public static VIPType build(int typeValue){
        switch (typeValue){
            case 0:
                return NONE;
            case 1:
                return VIP;
        }
        return NONE;
    }
}
